﻿using System.Web.Mvc;

namespace SiteCredivale.Areas.Intranet
{
    public class IntranetAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "Intranet";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {



            context.MapRoute(
               "Intranet-Módulos",
               "Intranet_/{controller}/{action}",
               new { action = "Index", id = UrlParameter.Optional }, namespaces: new[] { "SiteCredivale.Areas.Intranet.Controllers" }

           );

            context.MapRoute(
              "Intranet_default",
              "Intranet_",
              new { controller = "Inicio", action = "Index", id = UrlParameter.Optional }


          );



        }
    }
}
